# SmartMarket proxy for DropAPP
# install openApi generator
```shell
go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.9.1
```
# generate classes
```shell
oapi-codegen -package generated -o generated/dropapp/api.go schemas/developers-profile-2-sup-api.yaml
oapi-codegen -package generated -o generated/v8s/api.go schemas/v8s-api.json
```
# generate self-signed certificate
```shell
openssl req -x509 -newkey rsa:4096 -sha256 -days 365 \
  -subj "/CN=sm-proxy" \
  -reqexts SAN \
  -extensions SAN \
  -nodes \
  -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:")) \
  -keyout server.key -out server.cert
```